ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  CLng( )

You can determine the expression subtype by using the function VarType( ).


CLng(Number)

The CLng function converts any number to the variant of subtype Long.

Converts to integers ranging from -2,147,483,648 to 2,147,483,647

Code:
<% anynumber=1234.5 %>
<% =CLng(anynumber) %>

Output:
1234.5